<template>
	<view class="pp_gw">
		<!-- 我的订单 -->
		<view class="pp_info" v-for="(item,index) in ppgw" :key="item.id">
			<view class="pp_left">
				<u-image :src='item.head' width="120rpx" height="120rpx" shape="circle"></u-image>
				<view class="pp_title">
					<text class="pp_name">{{item.name}}</text>
					<text class="pp_text">{{item.text}}</text>
				</view>
			</view>
			<view class="pp_right">
				<view class="pp_right_info">
					<u-icon name="phone" color="#2979ff" size="60rpx"></u-icon>
				</view>
				<u-icon name="more-circle" color="#2979ff" size="60rpx"></u-icon>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				ppgw: []
			};
		},
		// 请求
		onLoad() {
			this.$api({
				url: '/ppgw',
				successCB: res => {
					console.log(res);
					this.ppgw = res.data
					console.log(this.ppgw);
				}

			})
		}
	}
</script>

<style lang="scss">
	.pp_gw {
		margin: 30rpx 40rpx;

		.pp_info {
			background-color: #fff;
			margin-bottom: 30rpx;
			display: flex;
			justify-content: space-between;
			align-items: center;
			border-radius: 20rpx;
			padding: 30rpx 10rpx;

			.pp_left {
				display: flex;
				margin-left: 30rpx;
			}

			.pp_title {
				margin-left: 30rpx;

				.pp_name {
					display: block;
					margin-bottom: 20rpx;
				}

				.pp_text {
					font-size: 24rpx;
					color: #9b9fa5;
					background-color: #f5f5fa;
					padding: 10rpx;
					border-radius: 180rpx;
				}
			}

			.pp_right {
				display: flex;
				margin-right: 30rpx;
				// justify-content: space-between;
				.pp_right_info{
					margin-right: 30rpx;
				}
			}
		}
	}
</style>
